package pub.tbc.toolkit.http2;

import java.util.Map;

/**
 * @author tbc on 2016/9/18 09:40:16.
 */
public interface HttpRequester {

    ResponseWrapper get(String url) throws RuntimeException;

    ResponseWrapper get(String url, Map<String, Object> param) throws RuntimeException;

    ResponseWrapper get(String url, Map<String, String> headers, Map<String, Object> param) throws RuntimeException;


    ResponseWrapper delete(String url);

    ResponseWrapper delete(String url, Map<String, Object> param);

    ResponseWrapper delete(String url, Map<String, String> headers, Map<String, Object> param);


    ResponseWrapper post(String url, Map<String, Object> param);

    ResponseWrapper post(String url, Map<String, String> headers, Map<String, Object> param);

    ResponseWrapper post(String url, Map<String, Object> param, String contentType);

    ResponseWrapper post(String url, Map<String, String> headers, Map<String, Object> param, String contentType);


    ResponseWrapper put(String url, Map<String, Object> param);

    ResponseWrapper put(String url, Map<String, String> headers, Map<String, Object> param);

    ResponseWrapper put(String url, Map<String, Object> param, String contentType);

    ResponseWrapper put(String url, Map<String, String> headers, Map<String, Object> param, String contentType);


}
